package cn.itcast.order.mapper;

import cn.itcast.hmall.pojo.order.Order;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

import java.text.SimpleDateFormat;
import java.util.List;

@Mapper
public interface OrderMapper extends BaseMapper<Order> {
    @Select("select * from tb_order where create_time<#{sdf}")
    List<Order> deleteOld(String sdf);
}
